import { http } from '@/utils/http/axios';

export function listMaintainProject(data = {}) {
  return http.request({
    url: '/admin/base/maintainProject/list',
    method: 'get',
    data,
  });
}

export function pageMaintainProject(data = {}) {
  return http.request({
    url: '/admin/base/maintainProject/page',
    method: 'post',
    data,
  });
}

export function addMaintainProject(data = {}) {
  return http.request({
    url: '/admin/base/maintainProject/add',
    method: 'post',
    data,
  });
}

export function updateMaintainProject(data = {}) {
  return http.request({
    url: '/admin/base/maintainProject/update',
    method: 'post',
    data,
  });
}

export function delMaintainProject(data = {}) {
  return http.request({
    url: '/admin/base/maintainProject/delete',
    method: 'post',
    data,
  });
}

export function exportMaintainProject(data) {
  return http.request({
    url: '/admin/base/maintainProject/export',
    method: 'post',
    data,
    responseType: 'blob',
  });
};